package br.com.guiav6.sisguia.entity;

import java.io.Serializable;

import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

//@Embeddable
public class BlocoPK implements Serializable{
	
	/*protected String letra;
	
	@OneToOne
	@JoinColumn(name = "NU_CEP")
	protected Cep cep;
	
	public BlocoPK() {}

	public BlocoPK(String letra, Cep cep) {
		this.letra = letra;
		this.cep = cep;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((letra == null) ? 0 : letra.hashCode());
		result = prime * result + ((cep == null) ? 0 : cep.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BlocoPK other = (BlocoPK) obj;
		if (letra == null) {
			if (other.letra != null)
				return false;
		} else if (!letra.equals(other.letra))
			return false;
		if (cep == null) {
			if (other.cep != null)
				return false;
		} else if (cep != other.cep)
			return false;
		return true;
	}

	public String getLetra() {
		return letra;
	}

	public void setLetra(String letra) {
		this.letra = letra;
	}

	public Cep getCep() {
		return cep;
	}

	public void setCep(Cep cep) {
		this.cep = cep;
	}*/

}